package com.bone.constant;


public class ProductConstant {

	
	 
	
	public static enum PRODUCT_APPROVE_STATUS {
		CREATE("未提交"),
		SUMITTED("待审核"),
		PASS("审核通过"),
		FAIL("审核不通过");
		private String cnName;
		PRODUCT_APPROVE_STATUS(String name){
			this.cnName=name;
		}
		public String getCode(){
			return this.name();
		}
		public String getCnName(){
			return this.cnName;
		}
		public static String getCnName(String code){
			for(PRODUCT_APPROVE_STATUS item:PRODUCT_APPROVE_STATUS.values()){
				if(item.getCode().equals(code))
				{
					return item.getCnName();
				}
			}
			return code;
		}
		public String toString(){
			return this.name();
		}
	}
	
	public static enum ORD_ORDER_AMOUNT_TYPE {
		UNVERIFIED("未审核"),
		PASS("审核通过"),
		FAIL("不通过"),
		CONFIRM("已确定");
		private String cnName;
		ORD_ORDER_AMOUNT_TYPE(String name){
			this.cnName=name;
		}
		public String getCode(){
			return this.name();
		}
		public String getCnName(){
			return this.cnName;
		}
		public static String getCnName(String code){
			for(ORD_ORDER_AMOUNT_TYPE item:ORD_ORDER_AMOUNT_TYPE.values()){
				if(item.getCode().equals(code))
				{
					return item.getCnName();
				}
			}
			return code;
		}
		public String toString(){
			return this.name();
		}
	}
	
}
